from django.urls import path
from API.views import UniversityModelAPIView, infection, SearchQuestionModelAPIView, QuestionListModelAPIView, \
    AnswerChildrenModelAPIView
from API.views import LoginModelAPIView
from API.views import RegisterModelAPIView
from API.views import ImageModelAPIView
from API.views import TagModelAPIView,TagsModelAPIView
from API.views import QuestionModelAPIView
from API.views import QuestionDetailModelAPIView
from API.views import UserInfoModelAPIView
from API.views import AnswerModelAPIView
from API.views import FeedbackModelAPIView
from API.views import SlideshowModelAPIView
from API.views import InviteRelationshipModelAPIView
from API.views import ReplyRelationshipModelAPIView
from API.views import InviteModelAPIView
app_name = 'API'

urlpatterns = [
    path('infection',infection.as_view(),name='infection'),
    path("SchoolInfo",UniversityModelAPIView.as_view(),name='university'),
    path("Login",LoginModelAPIView.as_view(),name='login'),
    path("Register",RegisterModelAPIView.as_view(),name='register'),
    path("Image",ImageModelAPIView.as_view(),name='image'),
    path("Tag",TagModelAPIView.as_view(),name='tag'),
    path("Tags",TagsModelAPIView.as_view(),name='tag'),
    path("Question",QuestionModelAPIView.as_view(),name='question'),
    path("QuestionDetail",QuestionDetailModelAPIView.as_view(),name='questionDetail'),
    path("UserInfo",UserInfoModelAPIView.as_view(),name='userInfo'),
    path("Answer",AnswerModelAPIView.as_view(),name='answer'),
    path("Feedback",FeedbackModelAPIView.as_view(),name='feedback'),
    path("Slideshow",SlideshowModelAPIView.as_view(),name='slideshow'),
    path("InviteRelationship",InviteRelationshipModelAPIView.as_view(),name='inviteRelationship'),
    path("ReplyRelationship",ReplyRelationshipModelAPIView.as_view(),name='replyrelationship'),
    path("Invite",InviteModelAPIView.as_view(),name="Invite"),
    path("Search",SearchQuestionModelAPIView.as_view(),name="Search"),
    path("QuestionList",QuestionListModelAPIView.as_view(),name="QuestionList"),
    path("AnswerChildren",AnswerChildrenModelAPIView.as_view(),name="AnswerChildren")
]